package com.xiaoyu.awakening.ai.control.entity.dto;


import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public final class AwkChatCompletionsResDto {
    @JsonProperty(
            value = "id",
            required = true
    )
    private String id;
    @JsonProperty(
            value = "created",
            required = true
    )
    private int created;
    @JsonProperty(
            value = "choices",
            required = true
    )
    private List<AwkChatChoice> choices;
    @JsonProperty(
            value = "usage",
            required = true
    )
    private AwkCompletionsUsage usage;

    private String msg;

    @JsonCreator
    private AwkChatCompletionsResDto(@JsonProperty(value = "id",required = true) String id, @JsonProperty(value = "created",required = true) int created, @JsonProperty(value = "choices",required = true) List<AwkChatChoice> choices, @JsonProperty(value = "usage",required = true) AwkCompletionsUsage usage) {
        this.id = id;
        this.created = created;
        this.choices = choices;
        this.usage = usage;
    }
}
